package com.gsm.dao;

import com.gsm.entity.SysRole;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 系统角色表(SysRole)表数据库访问层
 *
 * @author wjq
 * @since 2020-04-26 22:10:05
 */
public interface SysRoleDao {

    int insertSysRole(SysRole sysRole);

    int deleteSysRoleByRoleId(Long roleId);

    int updateSysRoleByRoleId(SysRole sysRole);

    SysRole selectSysRoleByRoleId(Long roleId);

    SysRole selectSysRoleByUserId(Long userId);

    List<SysRole> selectSysRoleList(SysRole sysRole);
}